using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Cube : MonoBehaviour
{
    // Start is called before the first frame update
    void OnEnable()
    {
        Invoke("Destroy", 3);
    }

    // Update is called once per frame
    void Update()
    {
        
    }
    public void Destroy()   
    {
        Pool.Instance.Set("Cube", this.gameObject);
    }
}
